// stores/counter.js
import { defineStore } from 'pinia'
import{ref} from 'vue'
//定义状态库 counter
export const userStore = defineStore('user', {
	let count =ref(0)
	function increment(){
		count.value++
	}
	return{
		count,
		increment
	}

})